package com.zhiliao.facade.demo1;

/**
 * 作者： zhi-liao
 * 类的作用:
 * 类的创建时间： 2021/5/23 17:49
 */
public class Facade {
    private ServiceA sa;
    private ServiceB sb;
    private ServiceC sc;

    public Facade() {
        sa = new ServiceAImpl();
        sb = new ServiceBImpl();
        sc = new ServiceCImpl();
    }
    public void methodA() {
        sa.methodA();
        sb.methodB();
    }
    public void methodB() {
        sb.methodB();
        sc.methodC();
    }
    public void methodC() {
        sc.methodC();
        sa.methodA();
    }

}
